package com.dooioo.pns.entity.model.v2;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * PackageName:com.dooioo.pns.api.v2.model
 * Author: Jerry.hu
 * Create: Jerry.hu (2015-07-20 下午2:23)
 * Description:分类列表 模型
 */
@Alias("businessList")
public class BusinessList implements Serializable {
	/**
	 * 应用appid
	 */
	private int appId;
	/**
	 * 业务分类id
	 */
	private int businessId;
	/**
	 * 业务名称
	 */
	private String businessName;
	/**
	 * 最后一条消息
	 */
	private String remark;
	/**
	 * 最后一条消息的创建时间
	 */
	private Date createTime;
	/**
	 * 消息状态 0 未读，1 已读
	 */
	private int readStatus;
	/**
	 * 消息打扰模式  true 打扰模式，false 勿扰模式
	 */
	private boolean disturb;


	public int getAppId() {
		return appId;
	}

	public void setAppId(int appId) {
		this.appId = appId;
	}

	public int getBusinessId() {
		return businessId;
	}

	public void setBusinessId(int businessId) {
		this.businessId = businessId;
	}

	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getReadStatus() {
		return readStatus;
	}

	public void setReadStatus(int readStatus) {
		this.readStatus = readStatus;
	}

	public boolean isDisturb() {
		return disturb;
	}

	public void setDisturb(boolean disturb) {
		this.disturb = disturb;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("BusinessList{");
		sb.append("appId=").append(appId);
		sb.append(", businessId=").append(businessId);
		sb.append(", businessName='").append(businessName).append('\'');
		sb.append(", remark='").append(remark).append('\'');
		sb.append(", createTime=").append(createTime);
		sb.append(", readStatus=").append(readStatus);
		sb.append('}');
		return sb.toString();
	}
}
